﻿<Window x:Class="isuka.samples.excel.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
        xmlns:r="clr-namespace:Codeplex.Reactive.Interactivity;assembly=ReactiveProperty.NET40"
        Title="Tradency 戦略評価" Height="400" Width="900">
    <DockPanel LastChildFill="True">
        <StatusBar DockPanel.Dock="Bottom">
            <StatusBarItem Content="{Binding StatusText.Value}" />
        </StatusBar>
        <DataGrid ItemsSource="{Binding Summary}" 
            CanUserReorderColumns="True" CanUserResizeColumns="True" 
            CanUserResizeRows="False" CanUserSortColumns="True" AllowDrop="True"
            FrozenColumnCount="2" AutoGenerateColumns="True"
        >
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="PreviewDragEnter">
                    <r:EventToReactive ReactiveProperty="{Binding DragEnter}" />
                </i:EventTrigger>
                <i:EventTrigger EventName="PreviewDrop">
                    <r:EventToReactive ReactiveProperty="{Binding Drop}" />
                </i:EventTrigger>
            </i:Interaction.Triggers>
        </DataGrid>
    </DockPanel>
</Window>
